import axios from "../../axios.js";
// 费用报销管理
export default {
    //获取报销列表
    getExpenseListApi(data) {
        return axios({
            url: '/crm/findAllReimbursement',
            method: 'post',
            data
        })
    },
    // 费用明细
    getExpenseDetailsApi(data) {
        return axios({
            url: '/reimbursement/detail',
            method: 'post',
            data
        })
    },
    // 单个删除
    delExpenseApi(data) {
        return axios({
            url: '/reimbursement/delete',
            method: 'post',
            data
        })
    },
    // 报销
    reimbursementApi(data) {
        return axios({
            url: '/crm/Reimbursement',
            method: 'post',
            data
        })
    },
    // 其他费用
    getOtherFeeApi(data) {
        return axios({
            url: '/crm/selectCost',
            method: 'post',
            data
        })
    },
    // 记录打印次数
    printNumApi(data) {
        return axios({
            url: '/reimbursement/updatePrintNumber',
            method: 'post',
            data
        })
    },
    // 作废
    cancel_Api(data) {
        return axios({
            url: '/crm/cancel',
            method: 'post',
            data
        })
    },
    /**==============费用报销审批================= */ 
    // 列表
    getExamineList_Ap(data) {
        return axios({
            url: '/crm/reimbursementApproveList',
            method: 'post',
            data
        })
    },
    // 同意
    agreeRefuse_Api(data) {
        return axios({
            url: '/crm/reimbursementApprove',
            method: 'post',
            data
        })
    },
}
